package com.sumainfor.wx.tenant.controller.director;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.wx.tenant.feign.Zfeign.ZpcGmioFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.io.Serializable;
import java.util.Map;

/**
 *退租
 */
@RestController
@RequestMapping("/director/DiWxWithdrawalApply")
public class DiWxWithdrawalApplyController implements Serializable {
    @Autowired
    private ZpcGmioFeign zpcGmioFeign;
    /**
     *退租申请
     */
    @PostMapping("/addDiWith")
    public JsonResult addDiWith(@RequestBody Map<String,Object>params){
        return zpcGmioFeign.addDiWith(params);
    }
    /**
     *租客端查询是否发起过退租申请
     */
    @GetMapping("/getDiWithdrawalApplyCount")
    public JsonResult getDiWithdrawalApplyCount(@RequestParam Map<String,Object>params){
        return zpcGmioFeign.getDiWithdrawalApplyCount(params);
    }
    /**
     *租客取消退租申请
     */
    @PostMapping("/updateDilApply")
    public JsonResult updateDilApply(@RequestBody Map<String,Object>params){
        return zpcGmioFeign.updateDilApply(params);
    }
}
